package com.banksoft.admin.service;

import com.banksoft.admin.entity.User;
import com.banksoft.front.bean.Page;
import com.banksoft.front.bean.UserBean;

import java.util.List;
import java.util.Map;

/**
 * Created by vanjoger on 2017/1/2.
 */
public interface UserService {
    User findByOpenId(String openId);

    List<User> findByAccount(String account);

    void saveUser(User dto);

    List<User> listByName(String name);

    void update(User user, String address);

    List<UserBean> listTeam(String id, boolean level);

    List<User> list(Map map);

    List<User> listUserByCity(String userLevel, String province, String city, String area);

    List<User> listPartnerUser();

    List<User> listByRecommendId(String recommendId);

    Page queryPage(Map map, int pageNo, int pageSize);

    Integer countPage(Map params);

    List<User> searchByPage(Map params);
}
